package com.zyl.familyspacecommoncore.token;
/*
 * Project: com.sunyard.am.shiro.token
 *
 * File Created at 2021/7/2
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only in accordance with the terms of the license.
 */

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.shiro.authc.UsernamePasswordToken;

import java.util.Date;

/**
 * @author zhouleibin
 * @Type com.sunyard.am.shiro.token
 * @Desc
 * @date 2021/7/2 12:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AccountToken extends UsernamePasswordToken {
    /** 用户登录部分 */
    /**
     * 用户id 加的依赖包序列化必须有id
     */
    private Long userId;

    /** 用户name */
    private String name;

    /**
     * 角色id
     */
    private String roleId;
    /**
     * 盐
     */
    private String salt;
    /**
     * 密码更新时间
     */
    private Date pwdUpdateTime;

}
/**
 * Revision history -------------------------------------------------------------------------
 * <p>
 * Date Author Note ------------------------------------------------------------------------- 2021/7/2 zhouleibin creat
 */
